package net.borderwars.userserver;

import net.borderwars.beans.Player;
import net.borderwars.beans.Robot;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

/**
 * @author ehubbard
 *         Date: Aug 12, 2005
 *         Time: 10:50:18 AM
 */
public interface ServerInterface {

    String getUsername();

    public List<Robot> getPublicRobots() throws SQLException;

    public Player getPlayer() throws SQLException;

    Robot saveRobot(Robot r) throws SQLException;

    String compile(Robot source) throws IOException, InterruptedException, SQLException;

    byte[] getBytes(Robot robot) throws IOException, InterruptedException, SQLException;
}
